const axios = require('axios')
  
  
let url = 'https://sports.weibo.cn/aj/rank/votenum?'
  
let headers = {
  "Accept": "application/json",
  "Accept-Encoding": "gzip, deflate, br",
  "Accept-Language": "zh-CN,zh;q=0.9,zh-TW;q=0.8",
  "Connection": "keep-alive",
  "Content-Length": "109",
  "Content-Type": "application/x-www-form-urlencoded",
  "Cookie":
  "SUBP=0033WrSXqPxfM725Ws9jqgMF55529P9D9WWaEIUm4Idu-qxB.Uo2v6-i5NHD95QcSK2cS0qcSKefWs4DqcjTHsvF9-4DMr9ydJ2t; SUB=_2A25NIU_8DeRhGeBL6lQW9ijJyDmIHXVu6lG0rDV6PUJbktAKLUXGkW1NR1c_bURfKz_pl_s4_HD8n6qFx6rFwYYZ; I-SASS-YF=c2553663d2d9e8f43787d85bedde20eb; WEIBOCN_FROM=1110106030; MLOGIN=1; _T_WM=65779948426; M_WEIBOCN_PARAMS=uicode%3D20000174",
  "DNT": "1",
  "Host": "sports.weibo.cn",
  "Origin": "https://sports.weibo.cn",
  "Referer":
  "https://sports.weibo.cn/rank/index?topicid=pu1m3iNB1qqj&bid=pHNmN33BBgjQ&portrait_only=1&disable_sinaurl=1&sinainternalbrowser=topnav&share_menu=1&disable_gesture_back=1",
  "Sec-Fetch-Dest": "empty",
  "Sec-Fetch-Mode": "cors",
  "Sec-Fetch-Site": "same-origin",
  "User-Agent":
  "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36",
  "X-Requested-With": "XMLHttpRequest"
}
  
let data = {
  bid: "pHNmN33BBgjQ",
  tid: "pu1m3iNB1qqj",
  id: "9023",
  uid: "6516766535",
  vid: "9023",
  securityid: "66a740e0eea7819626b134f69abe29d7"
}
// data=JSON.stringify(data)
axios({
  method: 'post',
  url,
  headers,
  transformRequest: [
    function (data) {
       let ret = ''
       for (let it in data) {
          ret += encodeURIComponent(it) + '=' + encodeURIComponent(data[it]) + '&'
       }
       ret = ret.substring(0, ret.lastIndexOf('&'));
       return ret
    }
  ],
  data: data
}).then(res => {
  console.log(res.data);
})